/**   

 * 
 * @Title: Application.java 
 * @Prject: com.ylkj.cloud.example
 * @Package: com.ylkj.cloud
 * @author: Jianbin   
 * @date: 2019年7月31日 下午2:27:58
 * @version: V1.0   
 */
package com.ylkj.cloud;



import ch.qos.logback.classic.Level;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;
import org.springframework.core.env.Environment;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

import java.util.ArrayList;
import java.util.List;

/**
 * 
 * @ClassName: Application
 * @Description: 启动入口
 * @author: Jianbin
 * @date: 2019年7月31日 下午2:27:58
 */
@EnableScheduling
@SpringBootApplication(scanBasePackages= {"com.ylkj.cloud"})
@ImportResource(locations = { "classpath:configs/druid-bean.xml", "classpath:configs/spring-core.xml" })
@EnableAsync

//@PropertySource("classpath:test.properties")
public class Application {
	@Autowired
	private Environment environment;

	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
		ch.qos.logback.classic.Logger rootLogger = (ch.qos.logback.classic.Logger) LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME);
//		rootLogger.setLevel(Level.INFO);
		Level level = rootLogger.getLevel();

		System.out.println("------------------------------------------光伏数字化系统服务启动成功------------------------------------------");
	}


}
